% ta2ucs.pat -- Tamil transcription to UCS (Unicode) in &#xxxxx;-notation
%
% History:
%   04-DEC-2003 Changed to emit &#xxxxx; entities (JH)
%   01-NOV-1998 Added skips for SGML tags and entities in Tamil mode (JH)
%   29-JAN-1998 Added Tamil translation table (JH)

@patterns 0

"<TA>"      1 "<foreign lang=ta>"   % handle Tamil parts
"<TAA>"     1 ""        % handle Tamil parts (without tagging them)
"</TA>"     e "tag </TA> found in Roman mode"
"</TAA>"    e "tag </TAA> found in Roman mode"

@patterns 2             % copy SGML tags in Tamil mode

">"     1 ">"
"\n"    e "new line in tag in Tamil mode"

"<TA2>" 1 ""            % handle Tamil parts (hack for nested occurences in attributes)

@patterns 3             % copy SGML entities in Tamil mode

";"     1 ";"
" "     e "space in entity in Tamil mode"

@rpatterns 1            % Tamil transcription to Unicode

"</TA>"     0 "</foreign>"
"</TAA>"    0 ""
"<TA>"      e "tag <TA> found in Tamil mode"
"<TAA>"     e "tag <TAA> found in Tamil mode"

"</TA2>"    2 ""        % handle Tamil parts (hack for nested occurences in attributes)

"<"     2 "<"           % SGML tag in Tamil mode
"&"     3 "&"           % SGML entity in Tamil mode

" "     p " "
"\n"    p "\n"
"."     p "."
","     p ","
":"     p ":"
";"     p ";"
"?"     p "?"
"!"     p "!"
"("     p "("
")"     p ")"

"a"     p "&#x0B85;"
"aa"    p "&#x0B86;"
"i"     p "&#x0B87;"
"ii"    p "&#x0B88;"
"u"     p "&#x0B89;"
"uu"    p "&#x0B8A;"
"e"     p "&#x0B8E;"
"ee"    p "&#x0B8F;"
"ai"    p "&#x0B90;"
"o"     p "&#x0B92;"
"oo"    p "&#x0B93;"
"au"    p "&#x0B94;"

".k"    p "&#x0B83;"

"k"     p "&#x0B95;&#x0BCD;"
"\"n"   p "&#x0B99;&#x0BCD;"
"c"     p "&#x0B9A;&#x0BCD;"
"~n"    p "&#x0B9E;&#x0BCD;"
".t"    p "&#x0B9F;&#x0BCD;"
".n"    p "&#x0BA3;&#x0BCD;"
"t"     p "&#x0BA4;&#x0BCD;"
"n"     p "&#x0BA8;&#x0BCD;"
"p"     p "&#x0BAA;&#x0BCD;"
"m"     p "&#x0BAE;&#x0BCD;"
"y"     p "&#x0BAF;&#x0BCD;"
"r"     p "&#x0BB0;&#x0BCD;"
"l"     p "&#x0BB2;&#x0BCD;"
"v"     p "&#x0BB5;&#x0BCD;"
"zh"    p "&#x0BB4;&#x0BCD;"
".l"    p "&#x0BB3;&#x0BCD;"
".r"    p "&#x0BB1;&#x0BCD;"
"_n"    p "&#x0BA9;&#x0BCD;"
"j"     p "&#x0B9C;&#x0BCD;"
".s"    p "&#x0BB7;&#x0BCD;"
"s"     p "&#x0BB8;&#x0BCD;"
"h"     p "&#x0BB9;&#x0BCD;"

"ka"    p "&#x0B95;"
"\"na"  p "&#x0B99;"
"ca"    p "&#x0B9A;"
"~na"   p "&#x0B9E;"
".ta"   p "&#x0B9F;"
".na"   p "&#x0BA3;"
"ta"    p "&#x0BA4;"
"na"    p "&#x0BA8;"
"pa"    p "&#x0BAA;"
"ma"    p "&#x0BAE;"
"ya"    p "&#x0BAF;"
"ra"    p "&#x0BB0;"
"la"    p "&#x0BB2;"
"va"    p "&#x0BB5;"
"zha"   p "&#x0BB4;"
".la"   p "&#x0BB3;"
".ra"   p "&#x0BB1;"
"_na"   p "&#x0BA9;"
"ja"    p "&#x0B9C;"
".sa"   p "&#x0BB7;"
"sa"    p "&#x0BB8;"
"ha"    p "&#x0BB9;"

"kaa"   p "&#x0B95;&#x0BBE;"
"\"naa" p "&#x0B99;&#x0BBE;"
"caa"   p "&#x0B9A;&#x0BBE;"
"~naa"  p "&#x0B9E;&#x0BBE;"
".taa"  p "&#x0B9F;&#x0BBE;"
".naa"  p "&#x0BA3;&#x0BBE;"
"taa"   p "&#x0BA4;&#x0BBE;"
"naa"   p "&#x0BA8;&#x0BBE;"
"paa"   p "&#x0BAA;&#x0BBE;"
"maa"   p "&#x0BAE;&#x0BBE;"
"yaa"   p "&#x0BAF;&#x0BBE;"
"raa"   p "&#x0BB0;&#x0BBE;"
"laa"   p "&#x0BB2;&#x0BBE;"
"vaa"   p "&#x0BB5;&#x0BBE;"
"zhaa"  p "&#x0BB4;&#x0BBE;"
".laa"  p "&#x0BB3;&#x0BBE;"
".raa"  p "&#x0BB1;&#x0BBE;"
"_naa"  p "&#x0BA9;&#x0BBE;"
"jaa"   p "&#x0B9C;&#x0BBE;"
".saa"  p "&#x0BB7;&#x0BBE;"
"saa"   p "&#x0BB8;&#x0BBE;"
"haa"   p "&#x0BB9;&#x0BBE;"

"ki"    p "&#x0B95;&#x0BBF;"
"\"ni"  p "&#x0B99;&#x0BBF;"
"ci"    p "&#x0B9A;&#x0BBF;"
"~ni"   p "&#x0B9E;&#x0BBF;"
".ti"   p "&#x0B9F;&#x0BBF;"
".ni"   p "&#x0BA3;&#x0BBF;"
"ti"    p "&#x0BA4;&#x0BBF;"
"ni"    p "&#x0BA8;&#x0BBF;"
"pi"    p "&#x0BAA;&#x0BBF;"
"mi"    p "&#x0BAE;&#x0BBF;"
"yi"    p "&#x0BAF;&#x0BBF;"
"ri"    p "&#x0BB0;&#x0BBF;"
"li"    p "&#x0BB2;&#x0BBF;"
"vi"    p "&#x0BB5;&#x0BBF;"
"zhi"   p "&#x0BB4;&#x0BBF;"
".li"   p "&#x0BB3;&#x0BBF;"
".ri"   p "&#x0BB1;&#x0BBF;"
"_ni"   p "&#x0BA9;&#x0BBF;"
"ji"    p "&#x0B9C;&#x0BBF;"
".si"   p "&#x0BB7;&#x0BBF;"
"si"    p "&#x0BB8;&#x0BBF;"
"hi"    p "&#x0BB9;&#x0BBF;"

"kii"   p "&#x0B95;&#x0BC0;"
"\"nii" p "&#x0B99;&#x0BC0;"
"cii"   p "&#x0B9A;&#x0BC0;"
"~nii"  p "&#x0B9E;&#x0BC0;"
".tii"  p "&#x0B9F;&#x0BC0;"
".nii"  p "&#x0BA3;&#x0BC0;"
"tii"   p "&#x0BA4;&#x0BC0;"
"nii"   p "&#x0BA8;&#x0BC0;"
"pii"   p "&#x0BAA;&#x0BC0;"
"mii"   p "&#x0BAE;&#x0BC0;"
"yii"   p "&#x0BAF;&#x0BC0;"
"rii"   p "&#x0BB0;&#x0BC0;"
"lii"   p "&#x0BB2;&#x0BC0;"
"vii"   p "&#x0BB5;&#x0BC0;"
"zhii"  p "&#x0BB4;&#x0BC0;"
".lii"  p "&#x0BB3;&#x0BC0;"
".rii"  p "&#x0BB1;&#x0BC0;"
"_nii"  p "&#x0BA9;&#x0BC0;"
"jii"   p "&#x0B9C;&#x0BC0;"
".sii"  p "&#x0BB7;&#x0BC0;"
"sii"   p "&#x0BB8;&#x0BC0;"
"hii"   p "&#x0BB9;&#x0BC0;"

"ku"    p "&#x0B95;&#x0BC1;"
"\"nu"  p "&#x0B99;&#x0BC1;"
"cu"    p "&#x0B9A;&#x0BC1;"
"~nu"   p "&#x0B9E;&#x0BC1;"
".tu"   p "&#x0B9F;&#x0BC1;"
".nu"   p "&#x0BA3;&#x0BC1;"
"tu"    p "&#x0BA4;&#x0BC1;"
"nu"    p "&#x0BA8;&#x0BC1;"
"pu"    p "&#x0BAA;&#x0BC1;"
"mu"    p "&#x0BAE;&#x0BC1;"
"yu"    p "&#x0BAF;&#x0BC1;"
"ru"    p "&#x0BB0;&#x0BC1;"
"lu"    p "&#x0BB2;&#x0BC1;"
"vu"    p "&#x0BB5;&#x0BC1;"
"zhu"   p "&#x0BB4;&#x0BC1;"
".lu"   p "&#x0BB3;&#x0BC1;"
".ru"   p "&#x0BB1;&#x0BC1;"
"_nu"   p "&#x0BA9;&#x0BC1;"
"ju"    p "&#x0B9C;&#x0BC1;"
".su"   p "&#x0BB7;&#x0BC1;"
"su"    p "&#x0BB8;&#x0BC1;"
"hu"    p "&#x0BB9;&#x0BC1;"

"kuu"   p "&#x0B95;&#x0BC2;"
"\"nuu" p "&#x0B99;&#x0BC2;"
"cuu"   p "&#x0B9A;&#x0BC2;"
"~nuu"  p "&#x0B9E;&#x0BC2;"
".tuu"  p "&#x0B9F;&#x0BC2;"
".nuu"  p "&#x0BA3;&#x0BC2;"
"tuu"   p "&#x0BA4;&#x0BC2;"
"nuu"   p "&#x0BA8;&#x0BC2;"
"puu"   p "&#x0BAA;&#x0BC2;"
"muu"   p "&#x0BAE;&#x0BC2;"
"yuu"   p "&#x0BAF;&#x0BC2;"
"ruu"   p "&#x0BB0;&#x0BC2;"
"luu"   p "&#x0BB2;&#x0BC2;"
"vuu"   p "&#x0BB5;&#x0BC2;"
"zhuu"  p "&#x0BB4;&#x0BC2;"
".luu"  p "&#x0BB3;&#x0BC2;"
".ruu"  p "&#x0BB1;&#x0BC2;"
"_nuu"  p "&#x0BA9;&#x0BC2;"
"juu"   p "&#x0B9C;&#x0BC2;"
".suu"  p "&#x0BB7;&#x0BC2;"
"suu"   p "&#x0BB8;&#x0BC2;"
"huu"   p "&#x0BB9;&#x0BC2;"

"ke"    p "&#x0B95;&#x0BC6;"
"\"ne"  p "&#x0B99;&#x0BC6;"
"ce"    p "&#x0B9A;&#x0BC6;"
"~ne"   p "&#x0B9E;&#x0BC6;"
".te"   p "&#x0B9F;&#x0BC6;"
".ne"   p "&#x0BA3;&#x0BC6;"
"te"    p "&#x0BA4;&#x0BC6;"
"ne"    p "&#x0BA8;&#x0BC6;"
"pe"    p "&#x0BAA;&#x0BC6;"
"me"    p "&#x0BAE;&#x0BC6;"
"ye"    p "&#x0BAF;&#x0BC6;"
"re"    p "&#x0BB0;&#x0BC6;"
"le"    p "&#x0BB2;&#x0BC6;"
"ve"    p "&#x0BB5;&#x0BC6;"
"zhe"   p "&#x0BB4;&#x0BC6;"
".le"   p "&#x0BB3;&#x0BC6;"
".re"   p "&#x0BB1;&#x0BC6;"
"_ne"   p "&#x0BA9;&#x0BC6;"
"je"    p "&#x0B9C;&#x0BC6;"
".se"   p "&#x0BB7;&#x0BC6;"
"se"    p "&#x0BB8;&#x0BC6;"
"he"    p "&#x0BB9;&#x0BC6;"

"kee"   p "&#x0B95;&#x0BC7;"
"\"nee" p "&#x0B99;&#x0BC7;"
"cee"   p "&#x0B9A;&#x0BC7;"
"~nee"  p "&#x0B9E;&#x0BC7;"
".tee"  p "&#x0B9F;&#x0BC7;"
".nee"  p "&#x0BA3;&#x0BC7;"
"tee"   p "&#x0BA4;&#x0BC7;"
"nee"   p "&#x0BA8;&#x0BC7;"
"pee"   p "&#x0BAA;&#x0BC7;"
"mee"   p "&#x0BAE;&#x0BC7;"
"yee"   p "&#x0BAF;&#x0BC7;"
"ree"   p "&#x0BB0;&#x0BC7;"
"lee"   p "&#x0BB2;&#x0BC7;"
"vee"   p "&#x0BB5;&#x0BC7;"
"zhee"  p "&#x0BB4;&#x0BC7;"
".lee"  p "&#x0BB3;&#x0BC7;"
".ree"  p "&#x0BB1;&#x0BC7;"
"_nee"  p "&#x0BA9;&#x0BC7;"
"jee"   p "&#x0B9C;&#x0BC7;"
".see"  p "&#x0BB7;&#x0BC7;"
"see"   p "&#x0BB8;&#x0BC7;"
"hee"   p "&#x0BB9;&#x0BC7;"

"kai"   p "&#x0B95;&#x0BC8;"
"\"nai" p "&#x0B99;&#x0BC8;"
"cai"   p "&#x0B9A;&#x0BC8;"
"~nai"  p "&#x0B9E;&#x0BC8;"
".tai"  p "&#x0B9F;&#x0BC8;"
".nai"  p "&#x0BA3;&#x0BC8;"
"tai"   p "&#x0BA4;&#x0BC8;"
"nai"   p "&#x0BA8;&#x0BC8;"
"pai"   p "&#x0BAA;&#x0BC8;"
"mai"   p "&#x0BAE;&#x0BC8;"
"yai"   p "&#x0BAF;&#x0BC8;"
"rai"   p "&#x0BB0;&#x0BC8;"
"lai"   p "&#x0BB2;&#x0BC8;"
"vai"   p "&#x0BB5;&#x0BC8;"
"zhai"  p "&#x0BB4;&#x0BC8;"
".lai"  p "&#x0BB3;&#x0BC8;"
".rai"  p "&#x0BB1;&#x0BC8;"
"_nai"  p "&#x0BA9;&#x0BC8;"
"jai"   p "&#x0B9C;&#x0BC8;"
".sai"  p "&#x0BB7;&#x0BC8;"
"sai"   p "&#x0BB8;&#x0BC8;"
"hai"   p "&#x0BB9;&#x0BC8;"

"ko"    p "&#x0B95;&#x0BCA;"
"\"no"  p "&#x0B99;&#x0BCA;"
"co"    p "&#x0B9A;&#x0BCA;"
"~no"   p "&#x0B9E;&#x0BCA;"
".to"   p "&#x0B9F;&#x0BCA;"
".no"   p "&#x0BA3;&#x0BCA;"
"to"    p "&#x0BA4;&#x0BCA;"
"no"    p "&#x0BA8;&#x0BCA;"
"po"    p "&#x0BAA;&#x0BCA;"
"mo"    p "&#x0BAE;&#x0BCA;"
"yo"    p "&#x0BAF;&#x0BCA;"
"ro"    p "&#x0BB0;&#x0BCA;"
"lo"    p "&#x0BB2;&#x0BCA;"
"vo"    p "&#x0BB5;&#x0BCA;"
"zho"   p "&#x0BB4;&#x0BCA;"
".lo"   p "&#x0BB3;&#x0BCA;"
".ro"   p "&#x0BB1;&#x0BCA;"
"_no"   p "&#x0BA9;&#x0BCA;"
"jo"    p "&#x0B9C;&#x0BCA;"
".so"   p "&#x0BB7;&#x0BCA;"
"so"    p "&#x0BB8;&#x0BCA;"
"ho"    p "&#x0BB9;&#x0BCA;"

"koo"   p "&#x0B95;&#x0BCB;"
"\"noo" p "&#x0B99;&#x0BCB;"
"coo"   p "&#x0B9A;&#x0BCB;"
"~noo"  p "&#x0B9E;&#x0BCB;"
".too"  p "&#x0B9F;&#x0BCB;"
".noo"  p "&#x0BA3;&#x0BCB;"
"too"   p "&#x0BA4;&#x0BCB;"
"noo"   p "&#x0BA8;&#x0BCB;"
"poo"   p "&#x0BAA;&#x0BCB;"
"moo"   p "&#x0BAE;&#x0BCB;"
"yoo"   p "&#x0BAF;&#x0BCB;"
"roo"   p "&#x0BB0;&#x0BCB;"
"loo"   p "&#x0BB2;&#x0BCB;"
"voo"   p "&#x0BB5;&#x0BCB;"
"zhoo"  p "&#x0BB4;&#x0BCB;"
".loo"  p "&#x0BB3;&#x0BCB;"
".roo"  p "&#x0BB1;&#x0BCB;"
"_noo"  p "&#x0BA9;&#x0BCB;"
"joo"   p "&#x0B9C;&#x0BCB;"
".soo"  p "&#x0BB7;&#x0BCB;"
"soo"   p "&#x0BB8;&#x0BCB;"
"hoo"   p "&#x0BB9;&#x0BCB;"

"kau"   p "&#x0B95;&#x0BCC;"
"\"nau" p "&#x0B99;&#x0BCC;"
"cau"   p "&#x0B9A;&#x0BCC;"
"~nau"  p "&#x0B9E;&#x0BCC;"
".tau"  p "&#x0B9F;&#x0BCC;"
".nau"  p "&#x0BA3;&#x0BCC;"
"tau"   p "&#x0BA4;&#x0BCC;"
"nau"   p "&#x0BA8;&#x0BCC;"
"pau"   p "&#x0BAA;&#x0BCC;"
"mau"   p "&#x0BAE;&#x0BCC;"
"yau"   p "&#x0BAF;&#x0BCC;"
"rau"   p "&#x0BB0;&#x0BCC;"
"lau"   p "&#x0BB2;&#x0BCC;"
"vau"   p "&#x0BB5;&#x0BCC;"
"zhau"  p "&#x0BB4;&#x0BCC;"
".lau"  p "&#x0BB3;&#x0BCC;"
".rau"  p "&#x0BB1;&#x0BCC;"
"_nau"  p "&#x0BA9;&#x0BCC;"
"jau"   p "&#x0B9C;&#x0BCC;"
".sau"  p "&#x0BB7;&#x0BCC;"
"sau"   p "&#x0BB8;&#x0BCC;"
"hau"   p "&#x0BB9;&#x0BCC;"

@end
